import { postRequest,postJsonRequest} from '@/api/axios'
export const login = (params) => {
    return postRequest('sys/user/login', params)
  }

  export const register = (params) => {
    return postJsonRequest('sys/user/register', params)
  }  

  
  export const page = (params) => {
    return postRequest('sys/user/page', params)
  }  

  export const update = (params) => {
    return postJsonRequest('sys/user/save', params)
  }  

  export const updateUseful = (params) => {
    return postRequest('sys/user/updateUseful', params)
}

  export const alter = (params) => {
    return postRequest('sys/user/alter', params)
  }  

  
  export const alterpassword = (params) => {
    return postRequest('sys/user/alterpassword', params)
  }  

